package com.kafka.producer.reach;

import lombok.extern.slf4j.Slf4j;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.autoconfigure.jdbc.DataSourceAutoConfiguration;
import org.springframework.boot.builder.SpringApplicationBuilder;
import org.springframework.boot.web.servlet.support.SpringBootServletInitializer;

/**
 * @author xuhaifeng
 */
@Slf4j
@SpringBootApplication(scanBasePackages = "com.kafka", exclude = {DataSourceAutoConfiguration.class})
public class ProducerApplication extends SpringBootServletInitializer {

    public static void main(String[] args) {
        SpringApplication.run(ProducerApplication.class, args);
        log.info("https://127.0.0.1:1960/producer/info");
    }

    @Override
    protected SpringApplicationBuilder configure(SpringApplicationBuilder application) {
        return application.sources(ProducerApplication.class);
    }

}
